import request from '@/config/axios'

// 获取目录和场景
export const getDicSceneList = async (params) => {
  return await request.get({ url: '/scene-directory/list-sceneDirectory', params })
}
// 获取目录
export const getDicList = async (params) => {
  return await request.get({ url: '/scene-directory/list-directory', params })
}
// 获取场景
export const getSceneList = async (params) => {
  return await request.get({ url: '/scene-directory/get', params })
}
// 获取场景数量
export const getSceneCount = async (params) => {
  return await request.get({ url: '/scene-directory/count', params })
}
// 创建目录
export const createSceneDic = async (data) => {
  return await request.post({ url: '/scene-directory/create', data })
}
// 删除目录
export const deleteSceneDic = async (data) => {
  return await request.delete({ url: '/scene-directory/delete?id=' + data.id })
}
// 更新目录
export const updateSceneDic = async (data) => {
  return await request.put({ url: '/scene-directory/update', data })
}
// 更新测试场景
export const updateTestScene = async (data) => {
  return await request.put({ url: '/test-scene/update', data })
}
// 场景运行
export const runTestScene = async (data) => {
  return await request.post({ url: '/test-scene/run', data })
}
// 创建场景
export const createTestScene = async (data) => {
  return await request.post({ url: '/test-scene/create', data })
}
// 获取场景信息
export const getTestScene = async (params) => {
  return await request.get({ url: '/test-scene/get', params })
}
// 删除场景
export const deleteTestScene = async (data) => {
  return await request.delete({ url: '/test-scene/delete?id=' + data.id })
}
// 创建场景步骤
export const createSceneStep = async (data) => {
  return await request.post({ url: '/scene-step/create', data })
}
// 获取场景报告列表
export const getSceneReportList = async (params) => {
  return await request.get({ url: '/scene-report/page', params })
}
// 获取场景报告信息
export const getSceneReport = async (params) => {
  return await request.get({ url: '/scene-report/get', params })
}
// 获取场景步骤
export const getSceneReportStep = async (params) => {
  return await request.get({ url: '/scene-report/get/step', params })
}
// 删除场景报告
export const deleteSceneReport = async (data) => {
  return await request.delete({ url: '/scene-report/delete?id=' + data.id })
}
// 批量删除报告
export const deleteBatchSceneReport = async (data) => {
  return await request.post({ url: '/scene-report/batch/delete', data })
}
